package game.block;

import parameters.Color3b;

public class Block {
	public static final int WIDTH	=	64;
	public static final int HEIGHT	=	32;
	
	private BlockType type;
	private Color3b color;
	
	public Block(BlockType type){
		this.type = type;
		color = new Color3b(Byte.MAX_VALUE, Byte.MAX_VALUE, Byte.MAX_VALUE);
	}
	
	public Block(BlockType type, Color3b col){
		this.type = type;
		color = new Color3b(col);
	}
	
	public Color3b getColor(){
		return color;
	}
	
	public void setType(BlockType type){
		this.type = type;
	}
	
	public BlockType getType(){
		return type;
	}
	
	public static final String toString(Block block){
		return "Block: " + block.getColor().r + " " + block.getColor().g + " " + block.getColor().b;
	}
}
